from dataaccess import FeaturedArtistData
from common import utility


class FeaturedArtistBiz(object):
    def __init__(self):
        pass

    def __ValidateInsert(self, featuredArtist):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateUpdate(self, featuredArtist):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateDelete(self, songID,artistID):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def InsertFeaturedArtist(self, featuredArtist):
        self.__ValidateInsert(featuredArtist)
        featuredArtistData = FeaturedArtistData.FeaturedArtistData()
        featuredArtistData.InsertFeaturedArtist(featuredArtist)

    def UpdateFeaturedArtist(self, featuredArtist):
        self.__ValidateUpdate(featuredArtist)
        featuredArtistData = FeaturedArtistData.FeaturedArtistData()
        featuredArtistData.UpdateFeaturedArtist(featuredArtist)

    def DeleteFeaturedArtist(self, songID,artistID):
        self.__ValidateDelete(songID,artistID)
        featuredArtistData = FeaturedArtistData.FeaturedArtistData()
        featuredArtistData.DeleteFeaturedArtist(songID,artistID)
